const files = require.context('./', true, /\.vue$/);
const components = {};
files.keys().forEach(key => {
  if (key === './index.js' || key.indexOf('./module/') === 0) return;
  const item = files(key).default;
  components[item.name] = item;
});

export default components;
